package com.hyst.repository;

import java.util.List;
import java.util.Map;

import com.hyst.domain.*;

import io.swagger.models.auth.In;
import tk.mybatis.mapper.common.Mapper;

public interface FreeAuditionMapper extends Mapper<FreeAudition> {
	List<FreeAudition> selectNow(FreeAudition freeAudition);
	
	List<FreeAudition> getListByCondition(FreeAudition freeAudition);
	
	List<FreeAudition> getListByPhone(FreeAudition freeAudition);
	
	List<FreeAudition> getListByName(FreeAudition freeAudition);
	
	int InsertToStudentTable(FreeAudition freeAudition);
	int InsertToAuditionData(FreeAudition freeAudition);
	
	int UpdateStudentTable(FreeAudition freeAudition);
	int UpdateAuditionData(FreeAudition freeAudition);
	
	int SetTryListenTrue(FreeAudition freeAudition);
	
	int saveAllotData(FreeAudition freeAudition);
	
	int saveRemarkData(FreeAudition freeAudition);
	
	int saveStateData(FreeAudition freeAudition);
	
	int saveDeleteData(FreeAudition freeAudition);

	int updateFreeAudition(FreeAudition freeAudition);

	FreeAudition selecById(String freeAudition);

	List<TeacherPeriod> selectListern(Map selectListern);

    List<TeacherPeriod> selectFormal(Map selectListern);

    List<TeacherPeriodUsed> selectFormal(String selectListern);

    Period selectPeriod(Integer id);

	FreeAudition getByOrderId(String orderId);

	void updateTeacher(FreeAudition freeAudition);

	void updateFreeAuditionTime(FreeAudition freeAudition);

    void updateFreeFormalTime(FreeAudition freeAudition);

    void deleteOrder(Map<String,String> sqlMap);

    void updateOrder(String orderId);

	void deleteDataTime(FreeAudition freeAudition);
}
